package scc.project.web.controller.manage;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 供应商管理的控制器
 *
 * @author 陈圳佳
 *         日期：2015/6/22
 */
@Controller
@RequestMapping("/manage/supplier")
public class SupplierController {

    @RequestMapping(value = "/edit.html", method = RequestMethod.GET)
    public String edit() {
        return "/manage/supplier/edit";
    }

    @RequestMapping(value = "/{page}.html", method = RequestMethod.GET)
    public String list(@PathVariable("page") Integer page, ModelMap modelMap) {
        return "/manage/supplier/list";
    }


}
